package com.cws.exception;

public class NestedException extends RuntimeException {
	  private static final long serialVersionUID = -6765360320533958383L;

	    // 棰勭暀瀛楁锛屾牴鎹瀛楁鍙互瀹炵幇澶氳
	    private String errorCode;

	    public NestedException() {
	        super();
	    }

	    public NestedException(String message, Throwable cause) {
	        super(message, cause);
	    }

	    public NestedException(String message, Throwable cause,String errorCode) {
	        super(message, cause);
	        this.errorCode = errorCode;
	    }

	    public NestedException(String message) {
	        super(message);
	    }

	    public NestedException(String message, String errorCode) {
	        super(message);
	        this.errorCode = errorCode;
	    }

	    public NestedException(Throwable cause) {
	        super(cause);
	    }

	    public NestedException(Throwable cause, String errorCode) {
	        super(cause);
	        this.errorCode = errorCode;
	    }

	    public String getErrorCode() {
	        return errorCode;
	    }

	    // 瀹炵幇澶氳鏃堕渶瑕佸鍐欐鏂规硶
	    public void setErrorCode(String errorCode) {
	        this.errorCode = errorCode;
	    }
}
